<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>robotide.usages.commands</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="robotide-module.html">Package&nbsp;robotide</a> ::
        <a href="robotide.usages-module.html">Package&nbsp;usages</a> ::
        Module&nbsp;commands
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="robotide.usages.commands-module.html">Module robotide.usages.commands</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package robotide=robotide-module.html"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-0', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package robotide.controller=robotide.controller-module.html,Variable robotide.controller.tags.Tag.controller=robotide.controller.tags.Tag-class.html#controller"><a title="robotide.controller
robotide.controller.tags.Tag.controller" class="py-name" href="#" onclick="return doclink('link-1', 'controller', 'link-1');">controller</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module robotide.controller.commands=robotide.controller.commands-module.html,Module robotide.usages.commands=robotide.usages.commands-module.html"><a title="robotide.controller.commands
robotide.usages.commands" class="py-name" href="#" onclick="return doclink('link-2', 'commands', 'link-2');">commands</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Class robotide.controller.commands.FindOccurrences=robotide.controller.commands.FindOccurrences-class.html"><a title="robotide.controller.commands.FindOccurrences" class="py-name" href="#" onclick="return doclink('link-3', 'FindOccurrences', 'link-3');">FindOccurrences</a></tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-4" class="py-name"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-4', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="robotide.controller
robotide.controller.tags.Tag.controller" class="py-name" href="#" onclick="return doclink('link-5', 'controller', 'link-1');">controller</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Module robotide.controller.macrocontrollers=robotide.controller.macrocontrollers-module.html"><a title="robotide.controller.macrocontrollers" class="py-name" href="#" onclick="return doclink('link-6', 'macrocontrollers', 'link-6');">macrocontrollers</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Class robotide.controller.macrocontrollers.KeywordNameController=robotide.controller.macrocontrollers.KeywordNameController-class.html"><a title="robotide.controller.macrocontrollers.KeywordNameController" class="py-name" href="#" onclick="return doclink('link-7', 'KeywordNameController', 'link-7');">KeywordNameController</a></tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"> </tt>
<a name="FindUsages"></a><div id="FindUsages-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="FindUsages-toggle" onclick="return toggle('FindUsages');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.usages.commands.FindUsages-class.html">FindUsages</a><tt class="py-op">(</tt><tt class="py-base-class">FindOccurrences</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FindUsages-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="FindUsages-expanded"><a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"> </tt>
<a name="FindUsages.execute"></a><div id="FindUsages.execute-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="FindUsages.execute-toggle" onclick="return toggle('FindUsages.execute');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.usages.commands.FindUsages-class.html#execute">execute</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">context</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FindUsages.execute-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="FindUsages.execute-expanded"><a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line">        <tt class="py-name">prev</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">occ</tt> <tt class="py-keyword">in</tt> <tt id="link-8" class="py-name"><a title="robotide.controller.commands.FindOccurrences" class="py-name" href="#" onclick="return doclink('link-8', 'FindOccurrences', 'link-3');">FindOccurrences</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method robotide.controller.chiefcontroller.ChiefController.execute()=robotide.controller.chiefcontroller.ChiefController-class.html#execute,Method robotide.controller.commands.AddSuite.execute()=robotide.controller.commands.AddSuite-class.html#execute,Method robotide.controller.commands.AddTestCase.execute()=robotide.controller.commands.AddTestCase-class.html#execute,Method robotide.controller.commands.ChangeTag.execute()=robotide.controller.commands.ChangeTag-class.html#execute,Method robotide.controller.commands.CopyMacroAs.execute()=robotide.controller.commands.CopyMacroAs-class.html#execute,Method robotide.controller.commands.CreateNewResource.execute()=robotide.controller.commands.CreateNewResource-class.html#execute,Method robotide.controller.commands.ExtractKeyword.execute()=robotide.controller.commands.ExtractKeyword-class.html#execute,Method robotide.controller.commands.FindOccurrences.execute()=robotide.controller.commands.FindOccurrences-class.html#execute,Method robotide.controller.commands.MoveTo.execute()=robotide.controller.commands.MoveTo-class.html#execute,Method robotide.controller.commands.Purify.execute()=robotide.controller.commands.Purify-class.html#execute,Method robotide.controller.commands.Redo.execute()=robotide.controller.commands.Redo-class.html#execute,Method robotide.controller.commands.SaveAll.execute()=robotide.controller.commands.SaveAll-class.html#execute,Method robotide.controller.commands.SaveFile.execute()=robotide.controller.commands.SaveFile-class.html#execute,Method robotide.controller.commands.Undo.execute()=robotide.controller.commands.Undo-class.html#execute,Method robotide.controller.commands.UpdateVariable.execute()=robotide.controller.commands.UpdateVariable-class.html#execute,Method robotide.controller.commands.UpdateVariableName.execute()=robotide.controller.commands.UpdateVariableName-class.html#execute,Method robotide.controller.settingcontrollers.TagsController.execute()=robotide.controller.settingcontrollers.TagsController-class.html#execute,Method robotide.usages.commands.FindUsages.execute()=robotide.usages.commands.FindUsages-class.html#execute"><a title="robotide.controller.chiefcontroller.ChiefController.execute
robotide.controller.commands.AddSuite.execute
robotide.controller.commands.AddTestCase.execute
robotide.controller.commands.ChangeTag.execute
robotide.controller.commands.CopyMacroAs.execute
robotide.controller.commands.CreateNewResource.execute
robotide.controller.commands.ExtractKeyword.execute
robotide.controller.commands.FindOccurrences.execute
robotide.controller.commands.MoveTo.execute
robotide.controller.commands.Purify.execute
robotide.controller.commands.Redo.execute
robotide.controller.commands.SaveAll.execute
robotide.controller.commands.SaveFile.execute
robotide.controller.commands.Undo.execute
robotide.controller.commands.UpdateVariable.execute
robotide.controller.commands.UpdateVariableName.execute
robotide.controller.settingcontrollers.TagsController.execute
robotide.usages.commands.FindUsages.execute" class="py-name" href="#" onclick="return doclink('link-9', 'execute', 'link-9');">execute</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-10" class="py-name" targets="Package robotide.context=robotide.context-module.html"><a title="robotide.context" class="py-name" href="#" onclick="return doclink('link-10', 'context', 'link-10');">context</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">occ</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Variable robotide.controller.commands.Occurrence.item=robotide.controller.commands.Occurrence-class.html#item,Variable robotide.ui.tree.ResourceRootHandler.item=robotide.ui.tree.ResourceRootHandler-class.html#item"><a title="robotide.controller.commands.Occurrence.item
robotide.ui.tree.ResourceRootHandler.item" class="py-name" href="#" onclick="return doclink('link-11', 'item', 'link-11');">item</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name"><a title="robotide.controller.macrocontrollers.KeywordNameController" class="py-name" href="#" onclick="return doclink('link-12', 'KeywordNameController', 'link-7');">KeywordNameController</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">prev</tt> <tt class="py-op">==</tt> <tt class="py-name">occ</tt><tt class="py-op">:</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">                <tt class="py-name">prev</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Variable robotide.ui.usagesdialog.UsagesListModel.count=robotide.ui.usagesdialog.UsagesListModel-class.html#count,Variable robotide.usages.usagesdialog.UsagesListModel.count=robotide.usages.usagesdialog.UsagesListModel-class.html#count"><a title="robotide.ui.usagesdialog.UsagesListModel.count
robotide.usages.usagesdialog.UsagesListModel.count" class="py-name" href="#" onclick="return doclink('link-13', 'count', 'link-13');">count</a></tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">prev</tt><tt class="py-op">:</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">                    <tt class="py-keyword">yield</tt> <tt class="py-name">prev</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">                <tt class="py-name">prev</tt> <tt class="py-op">=</tt> <tt class="py-name">occ</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">prev</tt><tt class="py-op">:</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line">            <tt class="py-keyword">yield</tt> <tt class="py-name">prev</tt> </tt>
</div></div><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Apr 13 15:09:57 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
